﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace S.Parturition.Domain.Model
{
    /// <summary>
    /// 产羔登记
    /// </summary>
    public class LambRegistrationModel
    {

        /// <summary>
        /// 产羔登记主键
        /// </summary>
        [Key]
        public int LambRegistrationId { get; set; }

        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime BirthDate { get; set; }

        /// <summary>
        /// 父亲耳号
        /// </summary>
        [MaxLength(50)]
        public string FatherEar { get; set; }

        /// <summary>
        /// 父亲品种
        /// </summary>
        public int FatherBreed { get; set; }

        /// <summary>
        /// 母亲耳号
        /// </summary>
        [MaxLength(50)]
        public string MotherEar { get; set; }

        /// <summary>
        /// 母亲品种
        /// </summary>
        public int MotherBreed { get; set; }

        /// <summary>
        /// 品种
        /// </summary>
        public int LambBreed { get; set; }

        /// <summary>
        /// 阶段
        /// </summary>
        public int LambStage { get; set; }

        /// <summary>
        /// 商品代号
        /// </summary>
        [MaxLength(50)]
        public string CommodityCode { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public bool Sex { get; set; }

        /// <summary>
        /// 出生状态
        /// </summary>
        public int BirthState { get; set; }

        /// <summary>
        /// 后裔耳号
        /// </summary>
        [MaxLength(50)]
        public string EarTag { get; set; }

        /// <summary>
        /// 出生体重(公斤)
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal BirthWeight { get; set; }

        /// <summary>
        /// 牙齿咬合
        /// </summary>
        [MaxLength(50)]
        public string? Tooth { get; set; }

        /// <summary>
        /// 毛发
        /// </summary>
        [MaxLength(50)]
        public string? Hair { get; set; }

        /// <summary>
        /// 色斑
        /// </summary>
        [MaxLength(50)]
        public string? Stain { get; set; }

        /// <summary>
        /// 蹄颜色
        /// </summary>
        [MaxLength(50)]
        public string? HoofColor { get; set; }

        /// <summary>
        /// 嘴颜色
        /// </summary>
        [MaxLength(50)]
        public string? MouthColor { get; set; }

        /// <summary>
        /// 角
        /// </summary>
        [MaxLength(50)]
        public string? Angle { get; set; }

        /// <summary>
        /// 脂肪分布
        /// </summary>
        [MaxLength(50)]
        public string? FatDistribution { get; set; }

        #region 审计字段

        /// <summary>
        /// 创建人
        /// </summary>
        [MaxLength(50)]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [MaxLength(50)]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }

        #endregion

        /// <summary>
        /// 羊只状态
        /// </summary>
        public bool SheepStatus { get; set; }

    }
}
